<?php
/**
 * Created by PhpStorm.
 * User: zl
 * Date: 2017/7/24
 * Time: 23:13
 */


    require_once('LoanFee.php');
    require_once('../Common.php');

    $data = $_POST;

    $result_array = array();
    if(!$data) {
        $result_array['state'] = 0;
        $result_array['state_error'] = 'POST_ERROR';
        exit($result_array);

    }

    $l_fee = new LoanFee();
    $r = $l_fee->ApproveLoanMoney($data['approve_id'], $data['userID'], $data['approve_state'], $data['basic_fee_opinion']['basic_fee_opinion'], $data['basic_fee_opinion']['basic_fee_opinion_detail'], false);
    if($r){
        $result_array['state'] = 1;
        $result_array['state_error'] = '';
    }
    else{
        $result_array['state'] = 0;
        $result_array['state_error'] = 'DB_ERROR';
    }
    echo json_encode($result_array);

?>